﻿using Microsoft.Extensions.Logging;

namespace Grow.Log.Serilog.Logging
{
    public class NullScopeProvider : IExternalScopeProvider
    {
        public static readonly IExternalScopeProvider Instance = new NullScopeProvider();

        public void ForEachScope<TState>(Action<object?, TState> callback, TState state)
        {
        }

        public IDisposable Push(object? state)
        {
            return NullDisposable.Instance;
        }
    }
}
